Skip to content

Email users code#2449

Draft
jonodrew wants to merge 6 commits intomasterfrom
email-users-code
Draft

Email users code#2449
jonodrew wants to merge 6 commits intomasterfrom
email-users-code

Conversation

@jonodrew
Copy link
Contributor

Draft application code - welcome to look, but not ready yet

@jonodrew jonodrew force-pushed the email-users-code branch 2 times, most recently from 35a57c8 to 9fde866 Compare February 3, 2026 14:47
This starts us down the path of using Active Job, which is the preferred mechanism for jobs in Rails 7.1.

Signed-off-by: jonathan.kerr <3410350+jonodrew@users.noreply.github.com>
I've taken the copy from Kimberly and put it into HTML, as we do with the rest of our emails

Signed-off-by: jonathan.kerr <3410350+jonodrew@users.noreply.github.com>
This adds an additional method to the MemberMailer class. It's currently called #chaser and it sends...the chaser email.

In the next commit I'll call it from a Job, or maybe a Service that's called from a Job

Signed-off-by: jonathan.kerr <3410350+jonodrew@users.noreply.github.com>
This is the setup required for using ActiveJob and its queue, and checking if things were enqueued.

Signed-off-by: jonathan.kerr <3410350+jonodrew@users.noreply.github.com>
This was an oversight when creating the related table, and fixes it

Signed-off-by: jonathan.kerr <3410350+jonodrew@users.noreply.github.com>
This outlines a single test for sending the chaser email. It also creates the relevant Job and Service.

When users haven't attended a workshop they were invited to in the last three months _and_ haven't already been chased, they'll be sent a follow up email

Signed-off-by: jonathan.kerr <3410350+jonodrew@users.noreply.github.com>
@jonodrew jonodrew marked this pull request as ready for review February 4, 2026 17:18
@jonodrew jonodrew requested a review from olleolleolle February 4, 2026 17:22
@jonodrew jonodrew marked this pull request as draft February 4, 2026 17:22
@jonodrew
Copy link
Contributor Author

jonodrew commented Feb 4, 2026

Alright, code mostly written. Now just need to figure out how to set it to be run on a regular basis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants